//
//  ZWHomeViewController.swift
//  weiboXue
//
//  Created by xue-iOS-work on 16/8/29.
//  Copyright © 2016年 iOS-work. All rights reserved.
//

import UIKit

class ZWHomeViewController: ZWVisitorController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if userLogin == false {
            visitorView.setupinfo(imageName: nil, titleName: "关注一些人,回这里看看有什么惊喜")
            return
        }

        self.tabBarItem.badgeValue = String(20)
        // 设置左右navigationItem
        // 设置左边的item
        navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: "navigationbar_friendsearch", style: .plain, target: self, action: #selector(clickleftItem))
        // 设置右边的item
        navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: "navigationbar_pop", style: .plain, target: self, action: #selector(pop))
        
    }

    func clickleftItem() -> Void {
        print("点击了左边的item")
    }
    func pop() -> Void {
        let vc = tempController()
        navigationController?.pushViewController(vc, animated: false)
    }
    

}
